﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="admin_search_property.aspx.cs" Inherits="admin_admin_search_property" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="heb"  dir="rtl">
<head id="Head1" runat="server">
    <link rel="shortcut icon" type="image/jpg" href="../images/logo/logo_feas.jpg" />

<title>Real estate</title>
<script src="../js/html5.js"></script>

<!--<script type="text/javascript" src="../js/sticky_footer.js"></script>-->
<link rel="stylesheet" type="text/css" href="../css/master.css"/>
<link rel="stylesheet" type="text/css" href="../css/dropBox.css"/>
<link rel="stylesheet" type="text/css" href="../css/menu.css"/>
<link rel="stylesheet" type="text/css" href="../css/tooltip.css"/>
<link rel="stylesheet" type="text/css" href="../css/buttons.css"/>
<link rel="stylesheet" href="../css/validationEngine.jquery.css" type="text/css" media="screen" title="no title" charset="utf-8" />
 <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css"
        rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script>
    <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css" 
            rel="stylesheet" type="text/css"/>
   
    <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css" rel="Stylesheet" type ="text/css" />
   

<script type="text/javascript">

    $(document).ready(function () {
        $("#student_permanent_address1").hide();
        $("#DropDownList1").change(function () {

            var x = $(this).val();
            if (x == "Yes") {
                $("#student_permanent_address1").show();
            }
            else {
                $("#student_permanent_address1").hide();
            }

        });
    });
</script>  <style>
    #content 
    {
        	min-height:550px;
	background-color: #FFFFFF;
	background-image: url(../images/bg/contentbg.png);
	min-width: 82%;
	margin-right:221px;
	height:100%;
	border-left-width: 1px;
	border-left-style: solid;
	border-left-color: #CCC;
    }
    #leftcolumn {
	float: right;
	width: 220px;
	margin-left: -100%;
	min-height:550px;
	background-color: #FFF;
	background-image: url(../images/bg/sidebarbg.png);
	
	border-left-width: 1px;
	border-left-style: solid;
	border-left-color: #CCC;
	height:100%;
	
}
    </style>
</head>
 <body>
<form id="form_std_register" class="form_control" runat="server">
   

   <div id="wrapper">
    <div class="ui-widget">
<div id="header"><a href="#"> <img src="../images/logo/logo_feas.png" alt="Logo" style="margin-top:7px;margin-left:7px;float:left;"> <img src="../images/logo/logo_feas2.png" alt="Logo" class="logo"></a>
    <div id="metaphors" align="right">
     
     
       <li id="btntheme"><a href="#"><span class="theme_icon"></span>Theme<span class="arrow"></span></a></li>

      <img src="../images/face1.png" class="user_icon">
      <li id="btnUser"><a href="#">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:label ID="Label2" runat="server" text="Label"></asp:label><span class="arrow"></span></a></li>
      <li><span class="logout_icon"></span>
          
          <asp:HyperLink
              ID="HyperLink1" runat="server" NavigateUrl="../admin.aspx">Logout</asp:HyperLink></li>
      <div id="box3" class="outerbox">
        <div id="box_inner3" class="innerbox">
          <div class="user_option"><img src="../images/icons/user.png" class="opt_icon">email</div>
          <div class="user_option"><img src="../images/icons/pencil.png" class="opt_icon">email</div>
        </div>
      </div>
      <div id="box2" class="outerbox">
        <div id="box_inner3" class="innerbox">
          <div class="user_option"><img src="../images/icons/user.png" class="opt_icon">alert</div>
          <div class="user_option"><img src="../images/icons/pencil.png" class="opt_icon">alert</div>
        </div>
      </div>
      <div id="box1" class="outerbox">
        <div id="box_inner1" class="innerbox">
          <div class="user_option1">
            <h4 class="opt_heading">Menu Bar</h4>
            <span id="show_menu" class="style">on</span><span id="hide_menu" class="style2">off</span></div>
        </div>
      </div>
      <div id="box" class="outerbox">
        <div id="box_inner" class="innerbox">
          <div class="user_option"><img src="../images/icons/user.png" class="opt_icon">Edit Profile</div>
          <div class="user_option"><img src="../images/icons/pencil.png" class="opt_icon">Change Password</div>
        </div>
      </div>
    </div>
    <!--End of the metaphor tag--> 
    
  </div>
  <!--End of the Header tag-->
  <div id="contentliquid">
    <div id="content">
      <div id="titalbar"> 
        <h1>Search Properties</h1>
        
      </div>
      <div id="content_placeholder">
      
          <div id="student_add" class="form_placeholder_std">
            <div id="student_title" class="form_title"><img src="../images/icons/user.png">
              <h2>Property Information</h2>
            </div>
            <table>
              <tr>
                <td>Price</td>
                <td>
                  <asp:DropDownList ID="DropDownList1" runat="server" CssClass ="combobox " 
                        AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="p_price" 
                        DataValueField="p_price" 
                        onselectedindexchanged="DropDownList1_SelectedIndexChanged">
                  </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:real_estateConnectionString %>" 
                        SelectCommand="SELECT [p_price] FROM [properties]"></asp:SqlDataSource>
                  </td>
                <td>Block<span style="color:#F00;"></span></td>
                <td><asp:DropDownList ID="DropDownList3" runat="server" CssClass ="combobox " 
                        AutoPostBack="True" DataSourceID="SqlDataSource3" DataTextField="block" 
                        DataValueField="block" 
                        onselectedindexchanged="DropDownList3_SelectedIndexChanged">
                  </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:real_estateConnectionString %>" 
                        SelectCommand="SELECT [block] FROM [properties]"></asp:SqlDataSource>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server"></asp:SqlDataSource>
                  </td>
                <td>Shower</td>
                <td><asp:DropDownList ID="DropDownList4" runat="server" CssClass ="combobox " 
                        AutoPostBack="True" 
                        onselectedindexchanged="DropDownList4_SelectedIndexChanged">
                        <asp:ListItem>Bath</asp:ListItem>
                   <asp:ListItem>Dosh</asp:ListItem>
                   
                   <asp:ListItem>Dosh + Bath</asp:ListItem>
                   
                   <asp:ListItem>Parents unit</asp:ListItem>
                   <asp:ListItem>Jacuzie</asp:ListItem>
                  </asp:DropDownList>
                   
                  </td>
              </tr>
              <tr>
		<td>Elevator<span style="color:#F00;"></span></td>
                <td><asp:DropDownList ID="DropDownList5" runat="server" CssClass ="combobox " 
                        AutoPostBack="True" 
                        onselectedindexchanged="DropDownList5_SelectedIndexChanged">
                        <asp:ListItem>Yes</asp:ListItem>
                      <asp:ListItem>No</asp:ListItem>
                      <asp:ListItem>Shabbat elevator</asp:ListItem>
                        <asp:ListItem>Cargo Elevator</asp:ListItem>
                      <asp:ListItem>2,3</asp:ListItem>
                  </asp:DropDownList>       
                    
                  </td>
                <td>City<span style="color:#F00;"></span></td>
                <td> <asp:DropDownList ID="DropDownList6" runat="server" CssClass ="combobox " 
                        AutoPostBack="True"
                        onselectedindexchanged="DropDownList6_SelectedIndexChanged">
                         <asp:ListItem Value="Afula"></asp:ListItem>
                                             <asp:ListItem Value="Arad"></asp:ListItem>
                                             <asp:ListItem Value="Ariel"></asp:ListItem>
                                             <asp:ListItem Value="Ashdod"></asp:ListItem>
                                             <asp:ListItem Value="Ashkelon"></asp:ListItem>
                                             <asp:ListItem Value="Baqa-Jatt"></asp:ListItem>
                                              <asp:ListItem Value="Bat Yam"></asp:ListItem>
<asp:ListItem Value="Beitar Illit"></asp:ListItem>
<asp:ListItem Value="Bnei Brakh"></asp:ListItem>
<asp:ListItem Value="Dimona"></asp:ListItem>
  <asp:ListItem Value="Baqa-Jatt"></asp:ListItem>
                                              <asp:ListItem Value="Eilatj"></asp:ListItem>
<asp:ListItem Value="El'ad"></asp:ListItem>
<asp:ListItem Value="Giv'atayim"></asp:ListItem>
<asp:ListItem Value="Giv'at Shmuel"></asp:ListItem>
                                             <asp:ListItem Value="Hadera"></asp:ListItem>
                                             <asp:ListItem Value="Haifa"></asp:ListItem>
<asp:ListItem Value="Herzliyak"></asp:ListItem>
<asp:ListItem Value="Hod HaSharon"></asp:ListItem>
                                             <asp:ListItem Value="Holon"></asp:ListItem>
                                                   <asp:ListItem Value="Jerusalem"></asp:ListItem>
<asp:ListItem Value="Karmiell"></asp:ListItem>
<asp:ListItem Value="Kafr Qasimm"></asp:ListItem>
<asp:ListItem Value="Kfar Sabao"></asp:ListItem>
                                             <asp:ListItem Value="Kiryat Atap"></asp:ListItem>
                                             <asp:ListItem Value="Kiryat Bialikq"></asp:ListItem>
<asp:ListItem Value="Kiryat Gatr"></asp:ListItem>
<asp:ListItem Value="Kiryat Malakhis"></asp:ListItem>
                                             <asp:ListItem Value="Kiryat Motzkint"></asp:ListItem>

                                               <asp:ListItem Value="Kiryat Onou"></asp:ListItem>
                                             <asp:ListItem Value="Kiryat Shmonav"></asp:ListItem>
<asp:ListItem Value="Kiryat Yamw"></asp:ListItem>
<asp:ListItem Value="Lod"></asp:ListItem>
                                             <asp:ListItem Value="Ma'ale Adumim"></asp:ListItem>
                  </asp:DropDownList>
                    
                  </td>
                <td>Street<span style="color:#F00;"></span></td>
                <td> <asp:DropDownList ID="DropDownList7" runat="server" CssClass ="combobox " 
                        AutoPostBack="True" DataSourceID="SqlDataSource7" DataTextField="street" 
                        DataValueField="street" 
                        onselectedindexchanged="DropDownList7_SelectedIndexChanged">
                  </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource7" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:real_estateConnectionString %>" 
                        SelectCommand="SELECT [street] FROM [properties]"></asp:SqlDataSource>
                  </td>
                  </tr>
                  <tr>
                 <td>Garden<span style="color:#F00;"></span></td>
                <td> 
                    <asp:DropDownList ID="DropDownList8" runat="server" CssClass ="combobox " 
                        AutoPostBack="True" 
                        onselectedindexchanged="DropDownList8_SelectedIndexChanged">
                        <asp:ListItem>Yes</asp:ListItem>
                        <asp:ListItem>No</asp:ListItem>
                  </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource8" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:real_estateConnectionString %>" 
                        SelectCommand="SELECT [garden] FROM [properties]"></asp:SqlDataSource>
                      </td>
                   <td>Parking<span style="color:#F00;"></span></td>
                <td> 
                    <asp:DropDownList ID="DropDownList9" runat="server" CssClass ="combobox " 
                        AutoPostBack="True" 
                        onselectedindexchanged="DropDownList9_SelectedIndexChanged">
                          <asp:ListItem>Yes</asp:ListItem>
                   <asp:ListItem>No</asp:ListItem>
                   <asp:ListItem>Double</asp:ListItem>
                   <asp:ListItem>Listed with Taboo</asp:ListItem>
                   <asp:ListItem>With Partner</asp:ListItem>
                    <asp:ListItem>Custom</asp:ListItem>
                  </asp:DropDownList>
                    
                      </td>
                      
                  <td>Zone<span style="color:#F00;"></span></td>
                <td> <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                    <asp:SqlDataSource ID="SqlDataSource11" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:real_estateConnectionString %>" 
                        SelectCommand="SELECT [zone] FROM [properties]"></asp:SqlDataSource>
                      </td>
            </tr>
              </table>
              
          
          </div>
		   <div id="student_permanent_address2" class="form_placeholder_std" style="margin-top:0;border-top:none;">
             <div id="student_title3" class="form_title"><img src="../images/icons/email.png">
              <h2>Search Results</h2>
            </div>
          
                <asp:Panel ID="Panel1" runat="server">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        CssClass="mGrid" DataSourceID="SqlDataSource12" 
                        onselectedindexchanged="GridView1_SelectedIndexChanged" onrowcommand="GridView1_RowCommand">
                        <Columns>
                         <asp:BoundField DataField="p_id" HeaderText="Property ID " 
                                SortExpression="p_id" />
                            <asp:BoundField DataField="type" HeaderText="Type" 
                                SortExpression="type" />
                            <asp:BoundField DataField="fname" HeaderText="First Name" 
                                SortExpression="fname" />
                            <asp:BoundField DataField="mname" HeaderText="Mid Name" 
                                SortExpression="mname" />
                            <asp:BoundField DataField="lname" HeaderText="Last Name" 
                                SortExpression="lname" />
                            <asp:BoundField DataField="street" HeaderText="Street" 
                                SortExpression="street" />
                            <asp:BoundField DataField="asset_amount" HeaderText="Asset Amount" 
                                SortExpression="asset_amount" />
                            <asp:BoundField DataField="block" HeaderText="Block" 
                                SortExpression="block" />
                            <asp:BoundField DataField="room" HeaderText="Room" 
                                SortExpression="room" />
                            <asp:BoundField DataField="custom_toilet" HeaderText="Custom Toilet" 
                                SortExpression="custom_toilet" />
                            <asp:BoundField DataField="p_street" HeaderText="Street" 
                                SortExpression="p_street" />
                            <asp:BoundField DataField="p_age" HeaderText="Age" SortExpression="p_age" />
                            <asp:ButtonField ButtonType="Image" CommandName="edit" HeaderText="Edit" 
                                ImageUrl="../images/1378645348_new-24.png" Text="Button" />
                        </Columns>
                    </asp:GridView>
               
                    <asp:SqlDataSource ID="SqlDataSource12" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:real_estateConnectionString %>" 
                        
                        
                        SelectCommand="SELECT [p_id] ,[type], [fname], [mname], [lname], [street], [asset_amount], [block], [room], [custom_toilet], [p_street], [p_age] FROM [properties] WHERE (([p_price] = @p_price) or ([block] = @block) or([electric] = @electric) or([city] = @city) or([shower] = @shower) or([street] = @street) or([garden] = @garden) or([parking] = @parking) or([zone] = @zone))">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="DropDownList1" Name="p_price" 
                                PropertyName="SelectedValue" Type="String" />
                            <asp:ControlParameter ControlID="DropDownList3" Name="block" 
                                PropertyName="SelectedValue" Type="String" />
                            <asp:ControlParameter ControlID="DropDownList5" Name="electric" 
                                PropertyName="SelectedValue" Type="String" />
                            <asp:ControlParameter ControlID="DropDownList6" Name="city" 
                                PropertyName="SelectedValue" Type="String" />
                            <asp:ControlParameter ControlID="DropDownList4" Name="shower" 
                                PropertyName="SelectedValue" Type="String" />
                            <asp:ControlParameter ControlID="DropDownList7" Name="street" 
                                PropertyName="SelectedValue" Type="String" />
                            <asp:ControlParameter ControlID="DropDownList8" Name="garden" 
                                PropertyName="SelectedValue" Type="String" />
                            <asp:ControlParameter ControlID="DropDownList9" Name="parking" 
                                PropertyName="SelectedValue" Type="String" />
                            <asp:ControlParameter ControlID="DropDownList10" Name="zone" 
                                PropertyName="SelectedValue" Type="String" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </asp:Panel>
            <div>
              
               </div>
          </div>
          

         
          <div id="student_submit" class="form_placeholder_std" style="margin-top:0;border-top:none;border-bottom:none;">
            <div id="student_title4" class="form_title">
              <div style="margin-left:27px;margin-top:2px;">
                   
              </div>
            </div>
          </div>
         
      </div>
    </div>
  </div>
    <script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/jquery-1.8.0.js"></script>
<script type="text/javascript" src="../js/jquery-1.8.0.min.js"></script>
<script src="../js/jquery.validationEngine-en.js" type="text/javascript"></script>
<script src="../js/jquery.validationEngine.js" type="text/javascript"></script>
<script type="text/javascript" src="../js/utility.js"></script>
<!--<script src="../js/jquery.min.js"></script>-->
<script src="../js/bootstrap-modal.js"></script>
 <div id="leftcolumn">
 <div id="leftcolumn_top">
      <div id="addtask" class="modal hide fade in" style="display: none; ">
        <div class="modal-header"> <a class="close" data-dismiss="modal">x</a>
          <h1 style="font-size:15px;padding:7px;font-weight:bold;">Notification's</h1>
        </div>
        <div class="modal-body">
        <table id="tbl_task" class="model_popup_desgin">
  <tr>
    <td><p> You have a recent&nbsp;&nbsp&nbsp;&nbsp;update on date</p></td>
  </tr>
  <tr>
     
   
  </tr>
  <tr>
      
  </tr>
  <tr>
    <td></td>
  </tr>
</table>

          
        </div>
        <div class="modal-footer">  <p><a data-toggle="modal" href="#addtask1" class="btn btn-success" style="font-weight:bold;"><img src="../images/icons/task.png" style="margin-right:7px;" />View</a></p></div>
      </div>
       <div id="addtask1" class="modal hide fade in" style="display: none; ">
        <div class="modal-header"> <a class="close" data-dismiss="modal">x</a>
          <h1 style="font-size:15px;padding:7px;font-weight:bold;">Notification's</h1>
        </div>
        <div class="modal-body1">
        <table id="Table1" class="model_popup_desgin">
  <tr>
    <td>Date of Creation</td>
    <td><p><asp:Label ID="Label3" runat="server" Text="Label" Visible="False"></asp:Label></p></td>
  </tr>
     <tr>
    <td>Last Updated Updated</td>
    <td><p><asp:Label ID="Label4" runat="server" Text="Label"></asp:Label></p></td>
  <td>Choose Agent</td>
      <asp:DropDownList ID="DropDownList2" runat="server" CssClass ="combobox " 
                Visible="False">
      </asp:DropDownList>
 
     
  <tr>
    <td>Add Another Agente Agent</td>
       <asp:TextBox ID="TextBox1" runat="server" Visible="False"></asp:TextBox>
  </tr>
  <tr>
    <td></td>
  </tr>
</table>

          
        </div>
        <div class="modal-footer">  <asp:Button ID="Button3" runat="server" Text="cancel" CssClass="btn btn-success" />
           </div>
      </div>
      
 </div>
        <ul id="nav" style=" text-align:right">
      <li><a href="dashboard.aspx"><img src="../images/icons/home.png" class="menu_icon">Dashboard</a> </li>    <li><a href="#"><img src="../images/icons/form.png" class="menu_icon">Rent</a>
        <ul>
          <li><a href="report_property_for_rent.aspx"><img src="../images/icons/tabs.png" class="menu_icon">Property To Rent</a></li> <li><a href="search_property_torent.aspx"><img src="../images/icons/tabs.png" class="menu_icon">Client Want To Rent</a></li>
        </ul></li><li><a href="search_buy_property.aspx"><img src="../images/icons/form.png" class="menu_icon">Client Want To Buy</a><li><a href="searh_sell_property.aspx"><img src="../images/icons/form.png" class="menu_icon">Property For Sale</a></li>
      
  <%--    <li><a href="#"><img src="../images/icons/phone.png" class="menu_icon"> Requests Details</a>
        <ul>
          <li><a href="Add_New_Request.aspx"><img src="../images/icons/form.png" class="menu_icon">Requests </a></li>
  
        <li><a href="deleterequest.aspx"><img src="../images/icons/trash.png" class="menu_icon">Delete Requests </a></li>
       
          <li><a href="adminrequestreport.aspx"><img src="../images/icons/pages.png" class="menu_icon">Reports</a></li>
        </ul>
      </li>--%>
          <li><a href="#"><img src="../images/icons/std2.png" class="menu_icon"> Agent</a>
        <ul>
          <li><a href="add_agent.aspx"><img src="../images/icons/plus.png" class="menu_icon">Agent add</a></li>
         
          <li><a href="deleteagent.aspx"> <img src="../images/icons/trash.png" class="menu_icon">Delete Agent</a></li>
          <li><a href="agentreport.aspx"><img src="../images/icons/pages.png" class="menu_icon">Agent Edit/Reports</a></li>
        </ul>
      </li>
  
     
     <li><a href="admin_notes.aspx"><img src="../images/icons/search.png" class="menu_icon">Action & Activity</a>
       <%-- <ul>
          <li><a href="admin_notes.aspx"><img src="../images/icons/paste.png" class="menu_icon">Notes</a></li>
          
         
           <li><a href="search_tasks.aspx"><img src="../images/icons/notice.png" class="menu_icon">Tasks</a></li>
           <li><a href="Property_Sell_Buy_Rent.aspx"><img src="../images/icons/home.png" class="menu_icon">Property to Sell/Buy/Rent</a></li>
          
        </ul>--%>
      </li>
       <li><a href="#"><img src="../images/icons/id.png" class="menu_icon">Account Details</a>
        <ul>
          <li><a href="admin_account_information.aspx"><img src="../images/icons/id.png" class="menu_icon">Update Account Details</a></li>
         
          
        </ul>
      </li>
    <li style="margin-top:10px" ><iframe src="Admin_Module_small/Calendar.aspx" height="250" width="220" scrolling="no" frameborder="0"></iframe></li>
    <li><a href="dashboard.aspx"><img src="../images/icons/id.png" class="menu_icon"><strong>View Full Calendar</strong></a></li>
    </ul>
  </div>
  


   <div id="footer">
    <p> Copyright &copy; 2013. II technology</p>
  </div>

</div>
</form>
</body>
</html>